//
//	App_getMusicList.h
/*
 {
 error_code = 0;
 data = {
 music_list = (
 {
 id = 1;
 title = 小白兔;
 author = 刘永辉;
 url = http://travel-red.oss-cn-hangzhou.aliyuncs.com/xiaobaitu.mp3;
 }
 ,
 {
 id = 11;
 title = 爸爸去哪儿;
 author = 林志颖;
 url = http://travel-red.oss-cn-hangzhou.aliyuncs.com/baobaoqunaer.mp3;
 }
 ,
 {
 id = 14;
 title = 彩虹约定;
 author = 群星;
 url = http://travel-red.oss-cn-hangzhou.aliyuncs.com/caihongyueding.mp3;
 }
 ,
 {
 id = 15;
 title = 大风车;
 author = 群星;
 url = http://travel-red.oss-cn-hangzhou.aliyuncs.com/dafengche.mp3;
 }
 ,
 {
 id = 16;
 title = 回忆;
 author = 群星;
 url = http://travel-red.oss-cn-hangzhou.aliyuncs.com/huiyi.mp3;
 }
 ,
 {
 id = 17;
 title = 三只小熊;
 author = 群星;
 url = http://travel-red.oss-cn-hangzhou.aliyuncs.com/sanzhixiaoxiong.mp3;
 }
 ,
 {
 id = 18;
 title = 我的国;
 author = 群星;
 url = http://travel-red.oss-cn-hangzhou.aliyuncs.com/wodeguo.mp3;
 }
 ,
 {
 id = 19;
 title = 小蛙跳;
 author = 群星;
 url = http://travel-red.oss-cn-hangzhou.aliyuncs.com/xiaowatiao.mp3;
 }
 ,
 {
 id = 20;
 title = 祖国的花朵;
 author = 群星;
 url = http://travel-red.oss-cn-hangzhou.aliyuncs.com/zuguodehuaduo.mp3;
 }
 ,
 {
 id = 21;
 title = 最美的光;
 author = 群星;
 url = http://travel-red.oss-cn-hangzhou.aliyuncs.com/zuimeideguang.mp3;
 }
 ,
 {
 id = 48;
 title = 丑小鸭;
 author = 群星;
 url = http://travel-red.oss-cn-hangzhou.aliyuncs.com/417012bb305f5e69eadc7386607f478e.mp3;
 }
 ,
 {
 id = 47;
 title = 白雪公主;
 author = 群星;
 url = http://travel-red.oss-cn-hangzhou.aliyuncs.com/39bd0576d8b1d817b61f21090570b914.mp3;
 }
 ,
 {
 id = 46;
 title = 卖火柴的女孩;
 author = 群星;
 url = http://travel-red.oss-cn-hangzhou.aliyuncs.com/0e7e561f31dc34de152a1b26972b5536.mp3;
 }
 ,
 {
 id = 6;
 title = 两只老虎;
 author = hsojn;
 url = http://travel-red.oss-cn-hangzhou.aliyuncs.com/laohu.mp3;
 }
 ,
 );
 }
 ;
 error_msg = 操作成功;
 }

 app下发给设备的格式：
 
 {"cmd":"audio","data":[{"addr":"remote","base_url":"http://travel-red.oss-cn-hangzhou.aliyuncs.com","reg":"music_list","value":[{"url":"xiaobaitu.mp3"},{"url":"baobaoqunaer.mp3"},{"url":"caihongyueding.mp3"},{"url":"dafengche.mp3"},{"url":"huiyi.mp3"},{"url":"sanzhixiaoxiong.mp3"},{"url":"wodeguo.mp3"},{"url":"xiaowatiao.mp3"},{"url":"zuguodehuaduo.mp3"},{"url":"zuimeideguang.mp3"},{"url":"417012bb305f5e69eadc7386607f478e.mp3"},{"url":"39bd0576d8b1d817b61f21090570b914.mp3"},{"url":"0e7e561f31dc34de152a1b26972b5536.mp3"},{"url":"laohu.mp3"}]}],"dev_id":"IF-YA-HBB-19A-C44F3314ECF5-6300","dev_type":"YA-HBB-19A","index":49}
 
 需要处理
 base_url
 url
 file_name
 
 */
#import <UIKit/UIKit.h>

@class App_getMusicListData,App_getMusicListMusic_list;

@interface App_getMusicList : NSObject 

@property (nonatomic, assign) NSInteger error_code;
@property (nonatomic, strong) App_getMusicListData * data;
@property (nonatomic, copy) NSString * error_msg;



@end

@interface App_getMusicListData : NSObject 

@property (nonatomic, strong) NSArray <App_getMusicListMusic_list *> * music_list;
/* lzy20031919注:
 到这里添加base_url
 */
@property (nonatomic, copy) NSString *base_url;
@end

@interface App_getMusicListMusic_list : NSObject

@property (nonatomic, assign) NSUInteger index;


@property (nonatomic, copy) NSString * title;
@property (nonatomic, assign) NSInteger idField;
@property (nonatomic, copy) NSString * author;
@property (nonatomic, copy) NSString * url;
/* lzy20031919注:
 filename，设备指定要的格式
 */
@property (nonatomic, copy) NSString *file_name;
// 选中状态需要
@property (nonatomic, assign) BOOL isSelected;

    /* 需要一个状态，让cell显示播放还是暂停状态，不同的右侧播放按钮*/
//                open/close/pause/recover/mute
@property (nonatomic, copy) NSString *audio_execute_status;
@end
